package com.hlk.controller.user;

import com.hlk.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

@Api(value = "用户管理相关的接口定义", tags = {"用户管理相关功能的controller"})
@RequestMapping("appUser")
public interface AppUserMngControllerApi {

    @PostMapping("queryAll")
    @ApiOperation(value = "查询所有网站用户")
    Result queryAll(@RequestParam String nickname, @RequestParam Integer status, @RequestParam Date startDate,
                    @RequestParam Date endDate, @RequestParam Integer page, @RequestParam Integer pageSize);

    @PostMapping("userDetail")
    @ApiOperation(value = "查看用户详情")
    Result userDetail(@RequestParam String userId);

    @PostMapping("freezeUserOrNot")
    @ApiOperation(value = "冻结用户或者解冻用户")
    Result freezeUserOrNot(@RequestParam String userId, @RequestParam Integer doStatus);

    @GetMapping("queryByIds")
    @ApiOperation(value = "根据用户id查询用户")
    Result queryAll(@RequestParam String userIds);

}
